const user = window.storage.getItem('user/user')
const state = {
  user
}
const mutations = {
  setUser (state, user) {
    state.user = user
    window.storage.setItem('user/user', user)
  }
}

export default {
  namespaced: true,
  state,
  mutations
}
